#! /usr/bin/env node
// const program = require('commander');
const inquirer = require('inquirer');
let {version}=require('./package.json');

const express = require('express');
const app = express();
let port=8080;
if(process.argv[2]=="-v"){
    console.log(version)
}else{
    port=process.argv[2]?process.argv[3]:port
    app.listen(port,() => {
        console.log(` ${port} 服务启动成功`)
    })
}